package com.chengqs.jvm.t3.load;

import java.io.IOException;

/**
 * 解析的含义
 */
public class Load2 {
    public static void main(String[] args) throws ClassNotFoundException, IOException {
        ClassLoader classloader = Load2.class.getClassLoader();
        // Class<?> c = classloader.loadClass("com.chengqs.jvm.t3.load.C");
        // new C();
        int c = C.c;
        System.out.println(c);
        System.in.read();
    }
}

class C extends D {
    static int a;
    static int b = 10;
    static final int c = 20;
    static final String str = "hello";
    static final Object e = new Object();

    public static void test() {
        int a = y;
        System.out.println(x);
    }
}

class D {

    static int x;
    static int y = 10;
    public static void test() {}
}